package com.zhumengquan.druid.service;

import com.zhumengquan.druid.domain.User;
import com.zhumengquan.druid.mapper.FindAllUserDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class FindAllUserService {

    @Autowired
    private FindAllUserDao find;

    public List<User> getUser(){
        List<User> result = find.findAllUser();
        System.out.println(result);
        return result;
    }
}
